package com.changgou.entity;

/**
 * @description:
 * @author: 自定义错误 异常类
 * @date: 2020-07-15 21:21
 **/
public class ResultCode {

    public static ResultCode DATA_NOT_EXIST = new ResultCode(102, "数据不存在");
    public static ResultCode ITEM_DELETED = new ResultCode(103, "商品已经删除");
    public static ResultCode GOODS_OFF_THE_SHELF = new ResultCode(104, "商品已经下架");
    public static ResultCode GOODS_OF_THE_SHELF = new ResultCode(108, "商品上架状态");
    public static ResultCode ITEM_APPROVED = new ResultCode(105, "商品已经审核过");
    public static ResultCode ITEM_NOT_DELETED = new ResultCode(106, "商品未删除");
    public static ResultCode ITEM_RESTORED = new ResultCode(107, "商品已还原");
    public static ResultCode IS_EMPTY = new ResultCode(109, "用户名或密码为空");


    private Integer code;
    private String desc;

    private ResultCode(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

}
